package co.com.inventarios.reporte;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

public class impresionReportes {

	private Map masterParams = new HashMap();
	private Connection con = null;

	public Map getMasterParams() {
		return masterParams;
	}

	public void setMasterParams(Map masterParams) {
		this.masterParams = masterParams;
	}

	public Connection getCon() {
		try {
			con = DriverManager.getConnection(
					"jdbc:oracle:thin:@localhost:1521:XE", "MANAGER", "05740574");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return con;
	}

	public void setCon(Connection con) {
		this.con = con;
	}
	
	public void closeConnection(){
		try {
			getCon().close();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
